<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>教务系统绑定 - 工大A梦</title>
    <link rel="stylesheet" href="../assets/css/weui.min.css">
    <link rel="stylesheet" href="../assets/css/register.css">

    <script>
        var basePath = 'register';
    </script>

</head>
<body>
<div class="container" id="container">

    <!--  Begin 表单  -->
    <div class="cell" v-if="isDisplayCell">
        <div class="hd">
            <h1 class="page_title">教务系统绑定</h1>
        </div>
        <div class="bd">
            <div class="weui_cells_title">假装这是一段声明</div>
            <div class="weui_cells weui_cells_form">
                <div class="weui_cell">
                    <div class="weui_cell_hd"><label class="weui_label">学号</label></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        <input class="weui_input" type="number" v-model="username" pattern="[0-9]*" placeholder="请输入学号"
                        title="10位纯数字学号" required>
                    </div>
                </div>
                <div class="weui_cell">
                    <div class="weui_cell_hd"><label class="weui_label">密码</label></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        <input class="weui_input" type="password" v-model="password" placeholder="请输入密码" required>
                    </div>
                </div>
                <div class="weui_cell">
                    <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
                    <div class="weui_cell_bd registerweui_cell_primary">
                        <input class="weui_input" type="tel" v-model="mobile" pattern="[0-9]*" placeholder="请输入手机号"
                        title="11位纯数字手机号">
                    </div>
                </div>
                <div class="weui_btn_area">
                    <a class="weui_btn weui_btn_primary" href="#" @click.parvent.stop="register">确定</a>
                </div>
            </div>
        </div>
    </div>
    <!--  End 表单  -->

    <!--  Begin 结果页  -->
    <div class="weui_msg" v-if="isDisplayMsg">
        <div class="weui_icon_area">
            <i class="weui_icon_msg {{ registerResult ? 'weui_icon_success' : 'weui_icon_warn'}}"></i>
        </div>
        <div class="weui_text_area">
            <h2 class="weui_msg_title">{{ registerResultTitle }}</h2>

            <p class="weui_msg_desc">{{ registerResultDesc }}</p>
        </div>
        <div class="weui_opr_area">
            <p class="weui_btn_area">
                <a href="#" @click.parvent.stop="result(registerResult)"
                class="weui_btn {{ registerResult ? 'weui_btn_primary' : 'weui_btn_warn'}}">
                    {{ registerResult ? '确定' : '返回'}}
                </a>
            </p>
        </div>
    </div>
    <!--  End 结果页  -->

    <!--  Begin 数据加载中  -->
    <div class="weui_loading_toast" v-if="isLoading">
        <div class="weui_mask_transparent"></div>
        <div class="weui_toast">
            <div class="weui_loading">
                <div class="weui_loading_leaf weui_loading_leaf_0"></div>
                <div class="weui_loading_leaf weui_loading_leaf_1"></div>
                <div class="weui_loading_leaf weui_loading_leaf_2"></div>
                <div class="weui_loading_leaf weui_loading_leaf_3"></div>
                <div class="weui_loading_leaf weui_loading_leaf_4"></div>
                <div class="weui_loading_leaf weui_loading_leaf_5"></div>
                <div class="weui_loading_leaf weui_loading_leaf_6"></div>
                <div class="weui_loading_leaf weui_loading_leaf_7"></div>
                <div class="weui_loading_leaf weui_loading_leaf_8"></div>
                <div class="weui_loading_leaf weui_loading_leaf_9"></div>
                <div class="weui_loading_leaf weui_loading_leaf_10"></div>
                <div class="weui_loading_leaf weui_loading_leaf_11"></div>
            </div>
            <p class="weui_toast_content">数据加载中</p>
        </div>
    </div>
    <!--  End 数据加载中  -->

</div>
<script src="../assets/js/require/require.js" data-main="../assets/js/app"></script>
</body>
</html>